package com.wva.tomcat;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet路径配置
 *      用浏览器直接访问
 */
@WebServlet({"/d4","/dd4","/ddd4"})  //多路径
//@WebServlet("/user/demo4")         //多层路径
//@WebServlet("/user/*")             //多层匹配
//@WebServlet("/*")                  //全匹配
//@WebServlet("*.do")                //扩展匹配
public class Demo04Servlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
        System.out.println("demo4...");
        System.out.println(req);
    }
}
